package com.dzirtbry.miner.model;

/**
 * User: dzirtbry
 * Date: 2/26/12
 * Time: 4:00 PM
 */
public class Cell {
    private boolean mined;
    private boolean flagged;
    private boolean opened;
    private int number;

    public Cell(boolean mined) {
        this.mined = mined;
        this.number = 0;
    }

    public void incNumber() {
        this.number++;
    }

    public boolean isFlagged() {
        return flagged;
    }

    public void setFlagged(boolean flagged) {
        this.flagged = flagged;
    }

    public void setMined(boolean mined) {
        this.mined = mined;
    }

    public boolean isMined() {
        return mined;
    }

    public boolean isOpened() {
        return opened;
    }

    public void setOpened(boolean opened) {
        this.opened = opened;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
}
